//
//  JMOrderInfoModel.h
//  NewiOSProject
//
//  Created by JMMac on 15.1.24.
//  Copyright © 2024 范智渊. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JMOrderModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface delayInfoItem : NSObject
///延期默认值
@property (nonatomic, copy) NSNumber *delayTotalNum;
@end

@interface JMOrderInfoModel : NSObject
@property (nonatomic, strong) NSNumber * delayPayStatus;
@property (nonatomic, strong) NSString * slogan;
@property (nonatomic, strong) NSNumber * repaymentTotalAmount;
@property (nonatomic, strong) NSString * productName;
@property (nonatomic, strong) NSString * loanAmount;
@property (nonatomic, strong) NSNumber * adminAmount;
@property (nonatomic, strong) NSString * orderNo;
@property (nonatomic, strong) NSNumber * termUnit;
@property (nonatomic, strong) NSArray  * pairs;
@property (nonatomic, strong) NSNumber * term;
@property (nonatomic, strong) NSNumber * delayStatus;
@property (nonatomic, strong) NSString * status;
@property (nonatomic, strong) NSString * expiryTime;
@property (nonatomic, strong) delayInfoItem * delayInfo;


//MARK: - 自增字段（非接口字段，方便根据判断取值使用）
///列表数据
@property (nonatomic, strong) JMOrderModel *listModel;
///审核中、放款中、已还传1，待还款、逾期传2 判断
@property (nonatomic, strong) NSString *pageType;
///处理后的商品图
@property (nonatomic, strong) UIImage * iconImg;
///详情状态文字
@property (nonatomic, strong) NSString * statusString;
///详情状态图片名称
@property (nonatomic, strong) NSString * statusImgName;
@end



@interface delayTermItem : NSObject
///延期周期集合
@property (nonatomic, copy) NSArray<NSNumber *> *delayList;
///延期默认值
@property (nonatomic, copy) NSNumber *defaultValue;
@end


@interface JMExtenDetailModel : NSObject

@property (nonatomic, strong) NSString * amount;
@property (nonatomic, strong) NSString * delayServiceFee;
@property (nonatomic, strong) NSString * delayExpiryTime;
@property (nonatomic, strong) NSString * loanAmount;
@property (nonatomic, strong) NSString * orderNo;
@property (nonatomic, strong) NSNumber * repayAmount;
@property (nonatomic, strong) NSString * termUnit;
@property (nonatomic, strong) NSArray * extensionDetails;
@property (nonatomic, strong) NSString * delayNum;
@property (nonatomic, strong) NSString * delayTotalNum;
@property (nonatomic, strong) delayTermItem *delayTerm;
@property (nonatomic, strong) JMOrderInfoModel *infoModel;



@end
//{
//  "amount" : "$3,750",
//  "delayServiceFee" : "$1,650",
//  "delayExpiryTime" : "24-01-2024",
//  "loanAmount" : "$3,000",
//  "orderNo" : "2023080401185864257823",
//  "repayAmount" : 3000,
//  "termUnit" : 1,
//  "extensionDetails" : [
//    {
//      "key" : "Tasa de extensión",
//      "value" : "$3,750"
//    },
//    {
//      "key" : "Fecha de vencimiento original",
//      "value" : "31-12-2024"
//    },
//    {
//      "key" : "Interés original",
//      "value" : "$0"
//    },
//    {
//      "key" : "Penalización original",
//      "value" : "$0"
//    },
//    {
//      "key" : "Honorario de consultoría de prórroga",
//      "value" : "$1,650"
//    },
//    {
//      "key" : "Cargo por servicios de prórroga",
//      "value" : "$2,100"
//    },
//    {
//      "key" : "Duración de prórroga",
//      "value" : "8Días"
//    },
//    {
//      "key" : "Nueva fecha de vencimiento",
//      "value" : "24-01-2024"
//    },
//    {
//      "key" : "Monto total del préstamo",
//      "value" : "$3,000"
//    }
//  ],
//  "delayNum" : 0,
//  "delayTotalNum" : 1,
//  "delayTerm" : {
//    "delayList" : [
//      8
//    ],
//    "defaultValue" : 8
//  }
//},
NS_ASSUME_NONNULL_END
